import { $get } from '@js/authRequest'
import { decompressLicenseAndMobile } from '@src/assets/js/tool'

export async function getDataRequest (id) {
  const res = await $get(`/api/xapc/arbitrator/${id}`)
  if (res.status !== 1) {
    throw new Error(res.message)
  }
  decompressLicenseAndMobile(res.data)
  return res.data
}
